<?php
include($folder.'/layouts/code-behind/frontend.php');
$id = (int)$_GET['id'];
$content['data'] = query(
	'SELECT 
		f.month_id AS monthID, 
		f.dayofmonth AS dayOfMonth,.
		f.name AS name, 
		f.content AS content, 
		m.name AS monthName 
	FROM feast f 
	INNER JOIN month m ON m.id = f.month_id 
	WHERE f.month_id = :id 
	ORDER BY f.dayofmonth',
	array('id'=>$id));
OpenTreeViewNode('trvMain', 24); //  kincskereső levél > cikkek
$_POST['trvMain']['activeNode'] = 
	$_POST['smpMain']['currentNode'] = 
		24;
$master['action'] = null;
$master['attributes'] = null;
$master['pageTitle'] = ucfirst($content['data'][0]['monthName']);
?>